package app.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springleaf.core.mvc.controller.PageApiController;
import org.springleaf.ui.token.TokenValidate;
import app.demo.model.Msg;

@Controller
@RequestMapping("/msg")
public class MsgController extends PageApiController<Msg>{
	
	@Override
	@TokenValidate//防重复
	@RequestMapping("save")
	public ModelAndView save(Msg obj) throws Exception {
		return super.save(obj);
	}
	
}
